import java.util.Scanner;

public class Main1357 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        int n=sc.nextInt();
        int[] arr =new int[n];
        int[] arr1 =new int[n];
        for (int i=0;i<n;i++){
            arr[i]= sc.nextInt();
        }
        for (int j=0;j<n;j++){
            arr1[j]=sc.nextInt();
        }
        double x=100.4;
        double y=0.0;
        double j1=0.0;
        for (int i=0;i<n;i++){
            y=y+(arr[i]-x)*(arr[i]-x);
        }
        for (int j=0;j<n;j++){
            j1=j1+(arr1[j]-x)*(arr1[j]-x);
        }
        if (y<j1){
            System.out.println("jia");
        }else {
            System.out.println("yi");
        }
    }
}
